<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>Faiss: faiss::HNSW::MinimaxHeap Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Faiss
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Friends</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacefaiss.html">faiss</a></li><li class="navelem"><a class="el" href="structfaiss_1_1HNSW.html">HNSW</a></li><li class="navelem"><a class="el" href="structfaiss_1_1HNSW_1_1MinimaxHeap.html">MinimaxHeap</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="structfaiss_1_1HNSW_1_1MinimaxHeap-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">faiss::HNSW::MinimaxHeap Struct Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="HNSW_8h_source.html">HNSW.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:aa84f4b0590b40f2db7cd414f03e09163"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa84f4b0590b40f2db7cd414f03e09163"></a>
typedef <a class="el" href="structfaiss_1_1CMax.html">faiss::CMax</a>&lt; float, <br class="typebreak"/>
<a class="el" href="structfaiss_1_1HNSW.html#ae1342fc2f07c325598a73b733e88ee74">storage_idx_t</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>HC</b></td></tr>
<tr class="separator:aa84f4b0590b40f2db7cd414f03e09163"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a139d799f393c94dd160922791f6d926c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a139d799f393c94dd160922791f6d926c"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>MinimaxHeap</b> (int n)</td></tr>
<tr class="separator:a139d799f393c94dd160922791f6d926c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5bb98fe6de052c6f966d25b4c7fff738"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5bb98fe6de052c6f966d25b4c7fff738"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>push</b> (<a class="el" href="structfaiss_1_1HNSW.html#ae1342fc2f07c325598a73b733e88ee74">storage_idx_t</a> i, float v)</td></tr>
<tr class="separator:a5bb98fe6de052c6f966d25b4c7fff738"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4996db9b18b792057dccc59d53e55957"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4996db9b18b792057dccc59d53e55957"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>max</b> () const </td></tr>
<tr class="separator:a4996db9b18b792057dccc59d53e55957"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2729c2c2688ac869b91c63edd88777d9"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2729c2c2688ac869b91c63edd88777d9"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>size</b> () const </td></tr>
<tr class="separator:a2729c2c2688ac869b91c63edd88777d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adad4c4a475a29ab0d02cce9dcb069f8a"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adad4c4a475a29ab0d02cce9dcb069f8a"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>clear</b> ()</td></tr>
<tr class="separator:adad4c4a475a29ab0d02cce9dcb069f8a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acd09edf2f36ccaf094b1df6acd51612b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acd09edf2f36ccaf094b1df6acd51612b"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>pop_min</b> (float *vmin_out=nullptr)</td></tr>
<tr class="separator:acd09edf2f36ccaf094b1df6acd51612b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a94d529d139fb46034abf26f1bd6a9f14"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a94d529d139fb46034abf26f1bd6a9f14"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>count_below</b> (float thresh)</td></tr>
<tr class="separator:a94d529d139fb46034abf26f1bd6a9f14"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:ae3eac58ea390ae96a00f6fc6e8e04591"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae3eac58ea390ae96a00f6fc6e8e04591"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>n</b></td></tr>
<tr class="separator:ae3eac58ea390ae96a00f6fc6e8e04591"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a41574372117595d8829816367d56ca02"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a41574372117595d8829816367d56ca02"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>k</b></td></tr>
<tr class="separator:a41574372117595d8829816367d56ca02"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a28f52e6beb031179d2fd3f7c7176db76"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a28f52e6beb031179d2fd3f7c7176db76"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>nvalid</b></td></tr>
<tr class="separator:a28f52e6beb031179d2fd3f7c7176db76"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a872c880f3f90af4e666dce2be4dab87c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a872c880f3f90af4e666dce2be4dab87c"></a>
std::vector&lt; <a class="el" href="structfaiss_1_1HNSW.html#ae1342fc2f07c325598a73b733e88ee74">storage_idx_t</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>ids</b></td></tr>
<tr class="separator:a872c880f3f90af4e666dce2be4dab87c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a38fa78ac21419dade4efdf69e4852450"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a38fa78ac21419dade4efdf69e4852450"></a>
std::vector&lt; float &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>dis</b></td></tr>
<tr class="separator:a38fa78ac21419dade4efdf69e4852450"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Heap structure that allows fast </p>

<p>Definition at line <a class="el" href="HNSW_8h_source.html#l00057">57</a> of file <a class="el" href="HNSW_8h_source.html">HNSW.h</a>.</p>
</div><hr/>The documentation for this struct was generated from the following files:<ul>
<li>/data/users/hoss/faiss/<a class="el" href="HNSW_8h_source.html">HNSW.h</a></li>
<li>/data/users/hoss/faiss/<a class="el" href="HNSW_8cpp_source.html">HNSW.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.5
</small></address>
</body>
</html>
